package com.cash.loan.modular.cash.controller;

import com.cash.loan.core.util.IpUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Administrator
 * @Date 2018-08-08 15:25
 */
@Controller
public class DealController {

    private Logger logger = LoggerFactory.getLogger(DealController.class);

    @RequestMapping(value = {"/*.php","/"})
    public String php(HttpServletRequest request) {
        String ip = IpUtils.getIpAddr(request);
        logger.warn("uri:"+request.getRequestURI()+",ip:"+ip);
        return "redirect:https://www.taobao.com";
    }
}
